package com.bootlever.framework.core.properties.basic;

public class Cors {

    private boolean enbale = false;
    private String addMapping;//被跨域的路径
    private String allowedMethods;//允许请求的方法
    private String allowedOrigins;//允许访问我们的跨域资源
    private String allowedHeaders;//允许的访问头
    private String exposeHeaders;//不允许的头
    private boolean allowedCredentials;
    private Long maxAge;

    public boolean isEnbale() {
        return enbale;
    }

    public void setEnbale(boolean enbale) {
        this.enbale = enbale;
    }

    public String getAddMapping() {
        return addMapping;
    }

    public void setAddMapping(String addMapping) {
        this.addMapping = addMapping;
    }

    public String getAllowedMethods() {
        return allowedMethods;
    }

    public void setAllowedMethods(String allowedMethods) {
        this.allowedMethods = allowedMethods;
    }

    public String getAllowedOrigins() {
        return allowedOrigins;
    }

    public void setAllowedOrigins(String allowedOrigins) {
        this.allowedOrigins = allowedOrigins;
    }

    public String getAllowedHeaders() {
        return allowedHeaders;
    }

    public void setAllowedHeaders(String allowedHeaders) {
        this.allowedHeaders = allowedHeaders;
    }

    public String getExposeHeaders() {
        return exposeHeaders;
    }

    public void setExposeHeaders(String exposeHeaders) {
        this.exposeHeaders = exposeHeaders;
    }

    public boolean isAllowedCredentials() {
        return allowedCredentials;
    }

    public void setAllowedCredentials(boolean allowedCredentials) {
        this.allowedCredentials = allowedCredentials;
    }

    public Long getMaxAge() {
        return maxAge;
    }

    public void setMaxAge(Long maxAge) {
        this.maxAge = maxAge;
    }
}
